## mako

<%page expression_filter="h"/>

<%namespace name='static' file='../static_content.html'/>

<%!
from django.utils.translation import gettext as _
%>
% if len(course_date_blocks) > 0:
    <h3 class="hd hd-6 handouts-header">${_("Upcoming Dates")}</h3>
    ## Should be organized by date, last date appearing at the bottom
    % for course_date_block in course_date_blocks:
        <%include file="dates-summary.html" args="course_date=course_date_block" />
    % endfor
    % if dates_tab_enabled:
        <div class="dates-tab-link">
            <a href="${dates_tab_link}">${_("View all course dates")}</a>
        </div>
    % endif
% endif

<%static:require_module_async module_name="js/dateutil_factory" class_name="DateUtilFactory">
    DateUtilFactory.transform('.localized-datetime');
</%static:require_module_async>
